import React from 'react'
import { useRoutes } from 'react-router-dom'
import { RootRoutes } from './routes'

const Index: React.FC = () => {
  const RouterView = () => {
    return useRoutes(RootRoutes)
  }

  return <RouterView></RouterView>
}

export default Index